/**
 * Created by cai on 2017/7/18.
 */


import {AppRegistry} from "react-native";
import test from "./test";

function newPage() {
  var route = NativeModules.RouteModule;
  let r = Math.random();
  var params = {
    "b->c": " hello world",
    "random": r
  };

  var moduleName = `test`;
  route.newPageWithJsName("test", moduleName, params);
  // AppRegistry.runApplication(moduleName,params)
}

function closePage(){
  var route = NativeModules.RouteModule;
  route.dismissNow();
}


AppRegistry.registerComponent('test', () => test);